package vn.smartoffice.promail.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import vn.smartoffice.promail.entity.MailContactGroup;
import vn.smartoffice.promail.mapper.MailContactGroupMapper;
import vn.smartoffice.promail.services.BaseService;
import vn.smartoffice.promail.services.MailContactGroupService;

@Service("mailContactGroupService")
@Transactional
public class MailContactGroupServiceImpl extends BaseService<MailContactGroup, MailContactGroupMapper> implements
		MailContactGroupService {

	@Autowired
	public MailContactGroupServiceImpl(MailContactGroupMapper mapper) {
		super(mapper);
	}

	@Override
	public List<MailContactGroup> findByUserId(long userId) {
		return mapper.findByUserId(userId);
	}

	@Override
	public List<MailContactGroup> findByParentId(Long parentId) {
		return mapper.findByParentId(parentId);
	}

}
